﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPage/AdminMasterPage.master" AutoEventWireup="true" CodeFile="Fin007.aspx.cs" Inherits="Admin_Fin_Fin007" %>


<asp:Content ID="Content1" ContentPlaceHolderID="phScript" Runat="Server">
    <script type="text/javascript" src="/Scripts/Controls/DatePicker/WdatePicker.js""></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div style="width: 100%; min-width: 700px">
        <div style="padding-right: 12px; display: block;">
            <table width="100%" cellspacing="2" cellpadding="2" class="AddTable" align="left">
               
              
                 <tr>
                    <td width="45px">
                        日期:
                    </td>
                    <td>
                       <span style="color: #FF6600;">
                    <input class="Wdate textBox" style="width: 180px;" runat="server" readonly="readonly"
                        type="text" id="txtStartDate" clientidmode="Static" onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'txtEndate\')||$dp.$DV(\'9998-12-31\')}'})" />&nbsp;&nbsp;至&nbsp;&nbsp;
                    <input class="Wdate textBox" runat="server" readonly="readonly" type="text" id="txtEndate"
                        clientidmode="Static" style="width: 180px;" onfocus="WdatePicker({minDate:'#F{$dp.$D(\'txtStartDate\');}',maxDate:'9998-12-31'})" />
                </span>
                    <span style="margin-left:8px">
                    <asp:Button id="btnSearch" runat="server" Text="搜索" OnClick="btnSearch_Click" /></span>
                    </td>
                    <td>
                    </td>
                  
                    <td width="56px" align="center">
                        <%=GetAddLink("Fin007a.aspx", null, 660, 560)%>
                    </td>
                </tr>
            </table>
        </div>
        <yncWeb:PagnationGrid PageSize="30" ID="pageGrid" runat="server" OnOnPageIndexChange="PageChanged">
            <HeaderTemplate>
                <table width="100%" cellspacing="0" cellpadding="0" class="pagnationtable" align="left">
                    <thead>
                        <tr>
                            <th width="40px">
                                序号
                            </th>
                            <th width="100px">
                                借阅人
                            </th>
                            <th width="160px">
                                借阅人邮件
                            </th>
                            <th width="120px">
                                借阅日期
                            </th>
                            <th width="100px">
                                预计归还日期
                            </th>
                            <th width="90px">
                                实际归还日期
                            </th>
                            <th width="90px">
                                借阅凭证
                            </th>
                            <th>
                                备注
                            </th>
                            <th width="80px">
                                状态
                            </th>
                            <th width="80px" class="center">
                                申请文件
                            </th>
                            <th width="180px" class="center">
                                操作
                            </th>
                        </tr>
                    </thead>
                    <tbody>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <%# Container.ItemIndex +1 %>
                    </td>
                    <td>
                        <%# Eval(VLendBoxMetadata.ColumnNames.Loanee)%>
                    </td>
                    <td>
                        <%# Eval(VLendBoxMetadata.ColumnNames.LoaneeEmail)%>
                    </td>
                    <td>
                        <%# Eval(VLendBoxMetadata.ColumnNames.LendDate).FormatDate(ConstantValue.DateFormat)%>
                    </td>
                    <td>
                        <%# Eval(VLendBoxMetadata.ColumnNames.ReturnDate).FormatDate(ConstantValue.DateFormat)%>
                    </td>
                    <td>
                        <%# Eval(VLendBoxMetadata.ColumnNames.ActReturnDate).FormatDate(ConstantValue.DateFormat)%>
                    </td>
                    <td>
                        <%# Eval(VLendReceiptsMetadata.ColumnNames.ReceiptCount)%>
                        [<%# GetLink("凭证管理", "V", "Fin007c.aspx", Container.DataItem, 980, 680, false, VLendBoxMetadata.ColumnNames.LendID)%>]
                    </td>
                    <td>
                        <%# Eval(VLendBoxMetadata.ColumnNames.Comments)%>
                    </td>
                    <td>
                        <%# GetLendStatus(Eval(VLendBoxMetadata.ColumnNames.LendStatus))%>
                    </td>
                    <td class="center action">
                        <%# (Eval(VLendBoxMetadata.ColumnNames.Attachment).ToString()).Length > 0 ? string.Format("<a class='style4' target='_blank' href='/UploadFile/{0}'>附件下载</a>", Eval(VLendBoxMetadata.ColumnNames.Attachment)) : ""%>                        
                    </td>
                    <td class="center action">
                        <%# GetActionUrl(Eval(VLendBoxMetadata.ColumnNames.LendStatus), Container.DataItem, (int)Eval(VLendReceiptsMetadata.ColumnNames.ReceiptCount))%>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </tbody> </table>
            </FooterTemplate>
        </yncWeb:PagnationGrid>
    </div>
</asp:Content>

